<extend name="Public:base" />
<block name="title"><title>后台管理 | 添加用户</title></block>

<block name="css">
<link rel="stylesheet" type="text/css" href="__CSS__/select2_metro.css" />

<link rel="stylesheet" type="text/css" href="__CSS__/chosen.css" />
</block>

<block name="sidebarmenu">
	<li class="start">

		<a href="__APP__">

		<i class="icon-home"></i> 

		<span class="title">管理首页</span>

		</a>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-cogs"></i> 

		<span class="title">系统设置</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="layout_horizontal_sidebar_menu.html">

				数据库设置</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-bookmark-empty"></i> 

		<span class="title">文章管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="{:U('Article/artList')}">

				文章列表</a>

			</li>

			<li >

				<a href="{:U('Article/addArt')}">

				添加文章</a>

			</li>

			<li>

				<a href="{:U('Article/cateList')}">

				分类列表</a>

			</li>

			<li class="">

				<a href="{:U('Article/addCate')}">

				添加分类</a>

			</li>

		</ul>

	</li>

	<li class="active">

		<a href="javascript:;">

		<i class="icon-user"></i> 

		<span class="title">用户管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li class="active">

				<a href="{:U('User/userlist')}">

				用户列表</a>

			</li>
			<li class="">

				<a href="{:U('User/addUser')}">

				添加用户</a>

			</li>

			<li >

				<a href="{:U('User/editPass')}">

				修改密码</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-th"></i> 

		<span class="title">Data Tables</span>

		<span class="selected"></span>

		<span class="arrow open"></span>

		</a>

		<ul class="sub-menu">

			<li class="">

				<a href="table_basic.html">

				Basic Tables</a>

			</li>

		</ul>

	</li>
</block>

<block name="page-title">				
	<h3 class="page-title">
		博客系统 <small>系统概况</small>
	</h3>
	<ul class="breadcrumb">
		<li>
			<i class="icon-home"></i>
			<a href="__APP__">主页</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('User/userlist')}">用户管理</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('User/userlist')}">信息查看</a> 
		</li>
	</ul>
</block>
						
<block name="page-content">
<div class="tab-pane " id="tab_3">

	<div class="portlet box green">

		<div class="portlet-title">

			<div class="caption"><i class="icon-reorder"></i>{$viewUser.username}信息查看</div>

			<div class="tools">

				<a href="javascript:;" class="collapse"></a>

				<a href="#portlet-config" data-toggle="modal" class="config"></a>

				<a href="javascript:;" class="reload"></a>

				<a href="javascript:;" class="remove"></a>

			</div>

		</div>

		<div class="portlet-body form">

			<!-- BEGIN FORM-->

			<div class="form-horizontal form-view">

				<h3 class="form-section">基本信息</h3>

				<div class="row-fluid">

					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" for="firstName">用户名:</label>

							<div class="controls">

								<span class="text bold">{$viewUser.username}</span>

							</div>

						</div>

					</div>

					<!--/span-->

					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" for="lastName">性别:</label>

							<div class="controls">

								<span class="text bold">{$viewUser['sex']?'男':'女'}</span>

							</div>

						</div>

					</div>

					<!--/span-->

				</div>

				<!--/row-->

				<div class="row-fluid">

					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" >邮箱:</label>

							<div class="controls">

								<span class="text bold">{$viewUser.mail}</span> 

							</div>

						</div>

					</div>

					<!--/span-->

					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" >用户组:</label>

							<div class="controls">

								<span class="text bold">{$viewUser.name}</span>

							</div>

						</div>

					</div>

					<!--/span-->

				</div>

				<!--/row-->        

				<div class="row-fluid">

					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" >最近登录IP:</label>

							<div class="controls">

								<span class="text bold">{$viewUser.loginip}</span>

							</div>

						</div>

					</div>

					<!--/span-->

					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" >最近登录时间:</label>

							<div class="controls">                                                

								<span class="text bold">{$viewUser.logintime}</span>

							</div>

						</div>

					</div>
				</div>
				<div class="row-fluid">
					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" >登录次数:</label>

							<div class="controls">                                                

								<span class="text bold">{$viewUser.loginnum}</span>

							</div>

						</div>

					</div>
					
					<div class="span6 ">

						<div class="control-group">

							<label class="control-label" > </label>

							<div class="controls">                                                

								<span class="text bold"> </span>

							</div>

						</div>

					</div>

					<!--/span-->

				</div>

				<!--/row-->                


				<div class="form-actions">
					<button type="button" class="btn green" onclick="edit();"><i class="icon-pencil"></i> 修改</button>

					<button type="button" class="btn" onclick="window.history.back(-1);">返回</button>

				</div>

			</div>

			<!-- END FORM-->  

		</div>

	</div>

</div>
</block> 

<block name="script">
<script type="text/javascript" src="__JS__/jquery.validate.min.js"></script>

<script type="text/javascript" src="__JS__/additional-methods.min.js"></script>

<script type="text/javascript" src="__JS__/select2.min.js"></script>

<script type="text/javascript" src="__JS__/chosen.jquery.min.js"></script>
<script src="__JS__/form-validation.js"></script> 
	<script>

		jQuery(document).ready(function() {       

		   // initiate layout and plugins

		   App.init();
		   FormValidation.init();

		});
		
		function edit(){
			var url= "{:U('/User/editUser', 'id='.$viewUser['id'])}";
			location.href= url;
		}

	</script>
</block>